import Vue from 'vue'
import VueRouter from 'vue-router'
<<<<<<< HEAD

import wenda from './routes/questions'
=======
import circle from "./routes/circle"
import center from './routes/center'
>>>>>>> 9e5f214b39cff513c61965526a7181fb0b4e04b7

Vue.use(VueRouter)

const routes = [
<<<<<<< HEAD
     wenda
=======
  // 学烘焙
{
  path : '/Footerone',
  name : 'Footerone',
  component: () => import(/*webpackChunkName: 'one'*/'@/views/Footerone'),
},


// 新手教程
{
  path : '/Headerthree',
  name : 'Headerthree',
  component: () => import(/*webpackChunkName: 'one'*/'@/views/Headerthree'),
},

// 搜索页面
{
  path : '/Search',
  name : 'Search',
  component: () => import(/*webpackChunkName: 'one'*/'@/views/Search'),
},
// 加号上传
// {
//   path : '/Jia',
//   name : 'Jia',
//   component: () => import(/*webpackChunkName: 'one'*/'@/views/Jia'),
// },


  // 烘焙圈
  circle,
  // 个人中心
  ...center,
  // 扫码登录
  {
    path: '/login',
    name: 'login',
    component: () => import(/*webpackChunkName: 'login'*/'@/components/Login'),
  },
  // 微信登录
  {
    path: '/wx',
    name: 'wx',
    component: () => import(/*webpackChunkName: 'wx'*/'@/components/wx'),
  },
  // 加载
  {
    path: '/loading',
    name: 'loading',
    component: () => import(/*webpackChunkName: 'loading'*/'@/components/global/Loading'),
  },
  // 密码登录
  {
    path: '/register',
    name: 'register',
    component: () => import(/*webpackChunkName: 'register'*/'@/components/register'),
  },
  // 重定向
  {
  	  path:'/',
  	  redirect:"/Footerone"
  }
>>>>>>> 9e5f214b39cff513c61965526a7181fb0b4e04b7
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
